//
//  LWLoopView.h
//  轮播器封装
//
//  Created by Alphts on 16/7/10.
//  Copyright © 2016年 Alphts. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "LWLoopCell.h"

@class LWLoopView;

@protocol LWLoopViewDelegate <NSObject>

@required

- (NSArray <NSString *>*)photoURLStrWithLoopView:(LWLoopView *)loopView;

@end

@interface LWLoopView : UICollectionView


//是否需要自动轮播,默认NO
@property (nonatomic, assign,getter=isAutoLoop) BOOL autoLoop;

//自动轮播的时间,默认1秒(在设置是否轮播之前赋值才有用)
@property (nonatomic, assign) CGFloat timeInterval;

//标题数组
@property (nonatomic, strong) NSArray *titleArray;

//title font
@property (nonatomic, assign) CGFloat titleFont;

//title color
@property (nonatomic, strong) UIColor *titleColor;

//pageControl color
@property (nonatomic, strong) UIColor *pageColor;

//currentPageControl color
@property (nonatomic, strong) UIColor *currentPageColor;

//style
@property (nonatomic, assign) kLoopStyle style;

@property (nonatomic, weak) id <LWLoopViewDelegate> loopDelegate;


//默认的有标题和页码
- (instancetype)initWithItemSize:(CGSize)itemSize;

- (instancetype)initWithItemSize:(CGSize)itemSize loopStyle:(kLoopStyle)style;


@end







